﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:asp="http://www.asp.net" version="1.0">
  <xsl:template match="/">
    <xsl:for-each select="/publicapi/resultset/result">
      <div id="itemContainer">
        <div id="itemHeader">
          <p class ="bldate"><xsl:value-of select="@date" /></p>
          <p class="blfeed"><a><xsl:attribute name="href"><xsl:value-of select="descendant::site/url"/></xsl:attribute><xsl:value-of select="ancestor::channel/title"/></a></p>
        </div>
        <div id="itemContent">
          <p class="bltitle"><a><xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute><xsl:value-of disable-output-escaping="yes" select="title"/></a></p>
          <p class="bldescription"><xsl:value-of disable-output-escaping="yes" select="abstract"/></p>
        </div>
        <div id="itemOptions">
        <asp:LinkButton runat="server" onclick="addFeed_Click" text="Add Feed"><xsl:attribute name="ID"><xsl:value-of select="@id"></xsl:value-of></xsl:attribute><xsl:attribute name="ToolTip"><xsl:value-of select="site/feedurl"></xsl:value-of></xsl:attribute> </asp:LinkButton>
        <p>Copy and Paste this Feed URL to the "Add Feed" box above: <em><xsl:value-of select="site/feedurl"></xsl:value-of></em></p>
        </div>
      </div>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>
